import java.util.Scanner;
public class BC42{
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        int grade = in.nextInt();
        if(grade >= 90 && grade <= 100){
            System.out.println("Perfect");
        }
    }
}